Type.registerNamespace("Telerik.Web.UI.Scheduler");
(function(a,b){b.DateGroupedWeekModel=function(c,e,d){b.DateGroupedWeekModel.initializeBase(this,[c,e,d]);
};
b.DateGroupedWeekModel.prototype={_getRawIndexFromDomElement:function(g){while(g&&(g.tagName.toUpperCase()!="TD")){g=g.parentNode;
}if(!g){return null;
}var m=g.parentNode;
var i=m.parentNode;
var c=g.cellIndex;
var f=g.parentNode.rowIndex;
var e=Sys.UI.DomElement.containsCssClass(m,"rsAllDayRow");
var d=e?0:1;
var l;
var j;
var k;
if(this._isVertical){l=c;
var h=i.rows.length/this.get_numberOfDays();
k=f%h;
if(this._owner.get_showAllDayRow()&&!e){k--;
}j=Math.floor(f/h);
}else{l=c%this._resources.get_count();
j=Math.floor(c/this._resources.get_count());
k=f;
}return{modelIndex:l,viewPartIndex:d,rowIndex:k,cellIndex:j};
},_getTimeFromDomElement:function(c){var f=this._getRawIndexFromDomElement(c);
var d=new Date(this._getFirstDayStart());
var e=f.rowIndex*this._owner.get_minutesPerRow();
a.RadScheduler._incrementTime(d,24*f.cellIndex,e);
return d;
},_getRenderer:function(){if(!this._renderer){this._renderer=new b.Rendering.DateGroupedWeekViewRenderer(this);
}return this._renderer;
}};
b.DateGroupedWeekModel.registerClass("Telerik.Web.UI.Scheduler.DateGroupedWeekModel",b.ResourceGroupedWeekModel);
})(Telerik.Web.UI,Telerik.Web.UI.Scheduler);
